#pragma once
#include <vector>
#include <map>
#include <string>
#include "Emitter.h"
#include "tinystr.h"
#include "tinyxml.h"

class ParticleManager
{
private:
	std::vector<Emitter*> AllEmitters;
	std::map<string, Emitter> Loaded;

	ParticleManager(void);
	~ParticleManager(void);

public:
	static class ParticleManager* GetInstance( void );


	void Save(const char* SaveParticleFileName = "ParticleSave.xml");
	void Load(const char* LoadParticleFileName = "ParticleSave.xml");
	void Update(float fElapsedTime);
	void Render();
	void LoadType();
	void DestroyEmitters();
	
};

